package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

@SpringBootApplication
@Slf4j
@ServletComponentScan//此时启动的时候，就会扫描到过滤器@WebFilter,创建过滤器，放入容器。
public class App {
    int i=100;
    String name="tommy";
    public static void main(String[] args) {
        SpringApplication.run(App.class,args);
        log.info("项目启动成功");
    }
}
